package com.aooci.ordercat.dao;

import java.util.List;

import com.aooci.ordercat.domain.OrderedItem;
import com.aooci.ordercat.vo.OrderedItemVo;

public interface OrderedItemDAO extends AbstractBaseDAO<OrderedItem, Integer>{

	List<OrderedItemVo> selectByOrdercatId(int ordercatId);
	
	List<OrderedItemVo> selectByOrdercatIdAndSortGroup(int ordercatId, int sortGroup);
	
	List<Integer> selectSortGroupByOrdercatId(int ordercatId);
	
	OrderedItem findOrderedItem(int ordercatId, int itemId);
	
	OrderedItemVo loadOrderedItemVo(int ordercatId, int itemId);
	
	float getOrderTotal(int ordercatId);
	
	int resetModifiedQuantityByOrdercatId(int ordercatId);
	
	public void deleteByOrdercatId(int ordercatId);
	
	public boolean hasKitchenItems(int ordercatId);
	
	public boolean hasAddingKitchenItems(int ordercatId);
}